package com.klw.business.mapper;

import java.util.List;
import com.klw.business.domain.KlwMajor;

/**
 * 专业Mapper接口
 * 
 * @author klw
 * @date 2025-08-24
 */
public interface KlwMajorMapper 
{
    /**
     * 查询专业
     * 
     * @param majorId 专业主键
     * @return 专业
     */
    public KlwMajor selectKlwMajorByMajorId(Long majorId);

    /**
     * 查询专业列表
     * 
     * @param klwMajor 专业
     * @return 专业集合
     */
    public List<KlwMajor> selectKlwMajorList(KlwMajor klwMajor);

    /**
     * 新增专业
     * 
     * @param klwMajor 专业
     * @return 结果
     */
    public int insertKlwMajor(KlwMajor klwMajor);

    /**
     * 修改专业
     * 
     * @param klwMajor 专业
     * @return 结果
     */
    public int updateKlwMajor(KlwMajor klwMajor);

    /**
     * 删除专业
     * 
     * @param majorId 专业主键
     * @return 结果
     */
    public int deleteKlwMajorByMajorId(Long majorId);

    /**
     * 批量删除专业
     * 
     * @param majorIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteKlwMajorByMajorIds(Long[] majorIds);
}
